<?
include('../tools/form.php');
//include('../db/koneksi.php');
$query_tabel="show tables from $db";
$result = mysql_list_tables ($db);
$i=0;
$data=array();
while ($row = mysql_fetch_row($result)) {
    $data[$i]=$row[0];
	$i++;
}





form_buka('generate_form_table.php'); //============================= Judul Form ========================
judul('Tabel Delete');
//============================= Isi Form ==========================
select('Nama Tabel','nm_tbl',$data);
//============================= Button ============================
button('button','Generate',"onclick='generate_table_form()'");
form_tutup(); 
?>
<script type="text/javascript" >
function generate_table_form()
{
var nm_tbl=$('#nm_tbl').val();

  $('#result_form').load('generate_table_delete.php',{nm_tbl:nm_tbl});
}
</script>